<?php
/**
 * 微笑云订票控制器
 * Author: 孙武 QQ:1228746736
 * Date: 2017/10/28
 * Time: 20:17
 */


namespace Home\Controller;

class OrderDetailController extends BaseOrderController
{

    /**
     * 订单详情
     * 我的订单->已取消->订单详情
     * @param string $id 订单id
     */
    public function hadCancelDetail($id='')
    {
        $order = M('order')->find($id);
        $order = $this->detailOrder($order);
        $this->assign("order",$order);
        $this->display();
    }


    /**
     * 订单详情
     * 我的订单->已支付->订单详情
     * @param string $id 订单id
     */
    public function hadPayDetail()
    {
        $order = M('order')->find($id);
        $order = $this->detailOrder($order);
        $this->assign("order",$order);
        $this->display();
    }

    /**
     * 订单详情
     * 我的订单->预约中->订单详情
     * @param string $id 订单id
     */
    public function orderingDetail()
    {
        $order = M('order')->find($id);
        $order = $this->detailOrder($order);
        $this->assign("order",$order);
        $this->display();
    }


    /**
     * 订单详情
     * 我的订单->未付款->订单详情
     * @param string $id 订单id
     */
    public function hadNoPayDetail($id)
    {
        $order = M('order')->find($id);
        $order = $this->detailOrder($order);
        $this->assign("order",$order);
        $this->display();
    }




}